<?php

class McCube_Exception_ModelConfigNotFound extends McCube_Exception{

    protected $name = '';
    protected $path = '';

    /** */
    public function __construct($name, $path, $parent){
        $this->name = $name;
        $this->path = $path;
        $this->parent = $parent;

        parent::__construct(
            'Model '.$name
            .' on File ['.$path.'] not found !'
        );
    }

    /** */
    public function renderHTML(){
        return ''
            .'Configuration of Model '
            .' [ <em style=";color:green;">'.$this->name.'</em> ] not found !'
            .' <br />- File [ <em style=";color:green;">'.$this->path.'</em> ]'
        ;
    }
}